package com.github.kfcfans.powerjob.server.common.utils;

import org.apache.commons.lang3.time.DateUtils;

import java.text.ParseException;
import java.util.Date;

/**
 * @author yaomengke
 * @create 2021- 01 - 28 - 9:41
 */
public class Constants {


    public static  Date MIN_DATE = null ;
    public static  Date MAX_DATE = null ;
    public static String EX_SPLIT_FLAG = "|" ;

    public static String EX_SPLIT_REGEX = "\\|" ;
    public static  int MIN_DATE_VALUE = 20200101 ;
    public static  int MAX_DATE_VALUE = 21990101 ;

    static {
        try {
            MIN_DATE = DateUtils.parseDate("20200101" + " 00:00:00" , "yyyyMMdd HH:mm:ss");
            MAX_DATE = DateUtils.parseDate("21990101" + " 00:00:00" , "yyyyMMdd HH:mm:ss");
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

}
